package com.hqyj.dao;

import com.hqyj.pojo.TbEstateManager;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 物业管理人员表 Mapper 接口
 * </p>
 *
 * @author gp
 * @since 2021-09-26
 */
@Repository
public interface TbEstateManagerMapper extends BaseMapper<TbEstateManager> {

    @Select("select * from tb_estate_manager where login_name = #{loginName}")
    TbEstateManager getByLoginName(String loginName);

    @Select("select * from tb_estate_manager where login_name = #{username} and password = #{password}")
    TbEstateManager login(@Param("username") String username, @Param("password") String password);
}
